﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using mvLibrary;

namespace fenk.Stock.Consultas
{
    public partial class DetalleDeStock : BaseForm
    {
        public DetalleDeStock()
        {
            InitializeComponent();
        }

        public override void AfterCallProgram(string progName)
        {
           int lastRowIndex = gridStock.Rows.GetLastRow(DataGridViewElementStates.None);
           DataGridViewRow lastRow =  gridStock.Rows[lastRowIndex];

           lastRow.Cells[1].Value = _item[1];
           lastRow.Cells[2].Value = _item[2];
           lastRow.Cells[3].Value = _item[3];
           lastRow.Cells[4].Value = _item[4];
           lastRow.Cells[5].Value = _item[5];
           lastRow.Cells[6].Value = _item[6];
           lastRow.Cells[7].Value = _item[7];
           lastRow.Cells[8].Value = _item[8];
           lastRow.Cells[9].Value = _item[9];
           lastRow.Cells[10].Value = _item[10];
           lastRow.Cells[11].Value = _item[11];
           lastRow.Cells[12].Value = _item[12];
        }

        private void DetalleDeStock_Load(object sender, EventArgs e)
        {
            butSave.Enabled = false;
        }
    }
}
